home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / mint / netlib / include / sockerr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-27  |  1.7 KB  |  42 lines

  1. /*
  2.  *    Socket related errors.
  3.  *
  4.  *    09/26/93, kay roemer.
  5.  */
  6.  
  7. #ifndef _SOCKERR_H
  8. #define _SOCKERR_H
  9.  
  10. #define    ENOTSOCK    -300    /* Socket operation on non-socket */
  11. #define    EDESTADDRREQ    -301    /* Destination address required */
  12. #define    EMSGSIZE    -302    /* Message too long */
  13. #define    EPROTOTYPE    -303    /* Protocol wrong type for socket */
  14. #define    ENOPROTOOPT    -304    /* Protocol not available */
  15. #define    EPROTONOSUPPORT    -305    /* Protocol not supported */
  16. #define    ESOCKTNOSUPPORT    -306    /* Socket type not supported */
  17. #define    EOPNOTSUPP    -307    /* Operation not supported */
  18. #define    EPFNOSUPPORT    -308    /* Protocol family not supported */
  19. #define    EAFNOSUPPORT    -309    /* Address family not supported by protocol */
  20. #define    EADDRINUSE    -310    /* Address already in use */
  21. #define    EADDRNOTAVAIL    -311    /* Cannot assign requested address */
  22. #define    ENETDOWN    -312    /* Network is down */
  23. #define    ENETUNREACH    -313    /* Network is unreachable */
  24. #define    ENETRESET    -314    /* Network dropped conn. because of reset */
  25. #define    ECONNABORTED    -315    /* Software caused connection abort */
  26. #define    ECONNRESET    -316    /* Connection reset by peer */
  27. #define    EISCONN        -317    /* Socket is already connected */
  28. #define    ENOTCONN    -318    /* Socket is not connected */
  29. #define    ESHUTDOWN    -319    /* Cannot send after shutdown */
  30. #define    ETIMEDOUT    -320    /* Connection timed out */
  31. #define    ECONNREFUSED    -321    /* Connection refused */
  32. #define    EHOSTDOWN    -322    /* Host is down */
  33. #define    EHOSTUNREACH    -323    /* No route to host */
  34. #define    EALREADY    -324    /* Operation already in progress */
  35. #define    EINPROGRESS    -325    /* Operation now in progress */
  36.  
  37. /* These are not really socket errors */
  38. #define EWOULDBLOCK    -326    /* Operation would block */
  39. #define EINTR        -128    /* System call was interrupted */
  40.  
  41. #endif /* _SOCKERR_H */
  42.